/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package swa.e_store.application;

import java.util.ArrayList;
import swa.e_store.data.OrderItem;

/**
 *
 * @author Stefan
 */
public class BusinessLogic_Check {
    
    public static void main(String[] args){
        
        
        //Create Arraylist of OrderItems;
        ArrayList<OrderItem> al = new ArrayList<OrderItem>();
        
        //Create orderItems
        OrderItem oi1 = new OrderItem(0, 0, 2, 10); // 10 Apples
        OrderItem oi2 = new OrderItem(0, 0, 9, 15); // 15 Pears
        OrderItem oi3 = new OrderItem(0, 0, 1, 20); // 20 Bananas
        
        //Fill Array-List
        al.add(oi1);
        al.add(oi2);
        al.add(oi3);
        
        
        //Check BL_Order-Functionality!
        BL_Order.placeReorder(al, 5, "2011-12-31");
    }
}
